package grape.attend.rest.vacation.vo;
import grape.base.service.dict.api.IDictService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.Trans;
import grape.common.service.trans.TransBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 假期表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="假期表数据响应对象")
public class VacationVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "请假单位，字典id")
    private String leaveUnitDictId;

    @TransBy(type = IDictService.trans_dictName, byFieldName = "leaveUnitDictId")
    @ApiModelProperty(value = "请假单位，字典名称")
    private String leaveUnitDictName;

    @ApiModelProperty(value = "计算请假时长方式，字典id")
    private String leaveCalTypeDictId;

    @TransBy(type = IDictService.trans_dictName, byFieldName = "leaveCalTypeDictId")
    @ApiModelProperty(value = "计算请假时长方式，字典名称")
    private String leaveCalTypeDictName;

    @ApiModelProperty(value = "备注")
    private String remark;


}
